package com.itheima2;

import java.util.Scanner;

public class Work07 {
    public static void main(String[] args) {
        Locker2  lo = new Locker2();

        Scanner sc = new Scanner(System.in);

        System.out.println("请输入存入货物，以over结束");
        String line = "";
        while (!(line=sc.nextLine()).equals("over")){
            lo.add(line);
        }
        System.out.println("请输入取货码，以over结束：");

        while (!(line=sc.nextLine()).equals("over")){
            lo.remove(line);
        }
        sc.close();
    }
}
